import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter)

import Home from "@/pages/Home"
import Search from "@/pages/Search"
import Login from "@/pages/Login"
import Register from "@/pages/Register"

export default new VueRouter({
    routes:[
        {
            path:'/home',
            component:Home,
        
        },
        {
            path:'/search',
            component:Search
        },
        {
            path:'/login',
            component:Login,
            meta:{
                isHideen:true
            }
        },
        {
            path:'/register',
            component:Register,
            meta:{
                isHideen:true
            }
        },
        {
            path:'/',
            redirect:'/home',
        }
    ]
})